package com.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.common.dto.CategoryDTO;
import com.common.model.Category;

import java.util.List;
import java.util.Map;

public interface CategoryService {

    IPage<Category> selectPage(Integer page, Integer pageSize);

    List<CategoryDTO> selectAllCategory();

    CategoryDTO selectById(Long id);

    int insert(Category category);

    int delete(Long categoryId);

    int update(Long categoryId, Category category);

    Map<Long, String> searchCategoryList(String title);

}
